Mattermost Application - Renew SSL Certificate of the Mattermost

| 1 min read

Mattermost board | 70%

SSL certification

Part 1 - Deploy Mattermost
The certificate has issued for 3 months only, so in the case your certificate expires, refer to bellow steps.

Renew SSL certificate

  1. shutdown the docker-compose
cd docker/
sudo docker-compose -f docker-compose.yml -f docker-compose.nginx.yml down
  1. renew the certificate using scripts/issue-certificate.sh
sudo bash scripts/issue-certificate.sh -d <your domain> -o ${PWD}/certs
  1. Chose the Renew option (Number 2) and then approve it
  2. it will inform you that the new certificate is at /etc/letsencrypt/live/{your domain}-0001/fullchain.pem and /etc/letsencrypt/live/{your domain}-0001/privkey.pem
  3. Make sure the CERT_PATH and the KEY_PATH point to the correct path
nano .env
  1. Now you can run your application using
sudo docker-compose -f docker-compose.yml -f docker-compose.nginx.yml up -d
  1. make sure your domain is accessable
curl https://<YOUR_MM_DOMAIN>